/* 
 * File:   main.cpp
 * Author: danielginting
 *
 * Created on April 29, 2011, 11:10 PM
 */

#include <cstdlib>
#include "Query.h"
#include <string>
#include <iostream>
using namespace std;

/*
 * 
 */

Query query;

int main() {
    string a;
    cin >> a;
    query.setLine(a);
    query.Parse();

    query.printParam();
    query.replace("X","hahaha");
    query.printParam();
    cout << query.getName(1) << endl;
    cout << query.getName(2) << endl;
    return 0;
}

